class Play(object):
    def __init__(self,xiejianxian,huge):
        self.xiejianxian = xiejianxian
        self.huge = huge

    def jieguo(self):
        print("xiejianxian" + str(self.xiejianxian))
        print("huge"+str(self.huge))

    def shengmingzhi(self,xuezhi,xuezhi_1):
        self.xiejianxian += xuezhi
        self.huge += xuezhi_1

my_play = Play(1000,10)
print(my_play.xiejianxian)
print(my_play.huge)

while my_play.xiejianxian:
    my_play.shengmingzhi(-100,-20)
    my_play.jieguo()